package cn.gson.crm.controller.delete;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.gson.crm.controller.BaseServlet;
import cn.gson.crm.model.dao.EmploDao;
import cn.gson.crm.model.dao.StudentDao;

/**
 * 恢复学员
 */
@WebServlet("/employee/recover")
public class EmployeeRecover extends BaseServlet {
	private static final long serialVersionUID = 1L;
    private EmploDao empDao = new EmploDao();   
	
	@Override
	protected void get(HttpServletRequest request, HttpServletResponse response) throws Exception {
		super.get(request, response);
		String[] id = request.getParameterValues("eid");
		
		for (String eid : id) {
			empDao.emploDeleteById("正常", Integer.parseInt(eid));
		}
		redirect("/show/delete/emp");
	}
}
